pandas select only earliest event for duplicates

29

data_all.sort_values(data_all.columns.tolist())\
          .drop_duplicates(subset=['CB date'], keep='first')

Comments

Submit
0 Comments